Repository navigation
Document OTLP retries with the grpc-java sender - #9075
yangjj-iso wants to merge 2 commits into
Conversation
Signed-off-by: redyyang <3202137046@qq.com>
|
|
Pull request dashboard statusWaiting on maintainers · refreshed 2026-12-05 01:56 UTC Merge when ready. Status above doesn't look right?
|
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## main #9075 +/- ##
============================================
- Coverage 90.56% 90.52% -0.05%
- Complexity 11220 11272 +52
============================================
Files 1032 1040 +8
Lines 30599 30762 +163
Branches 4010 4035 +25
============================================
+ Hits 27711 27846 +135
- Misses 1913 1931 +18
- Partials 975 985 +10 ☔ View full report in Codecov by Harness. 🚀 New features to boost your workflow:
|
5cd0050 to
cefe05d
Compare
breedx-splk
left a comment
There was a problem hiding this comment.
This seems reasonable to me, thanks.
| * | ||
| * <p>The grpc-java sender ({@code opentelemetry-exporter-sender-grpc-managed-channel}) delegates | ||
| * retries to its {@link ManagedChannel}, including when it creates a fallback channel. To | ||
| * customize retries with this sender, configure a channel and pass it to {@link #setChannel}. |
There was a problem hiding this comment.
This is confusing javadoc. Reading quickly you might conclude that RetryPolicy is applied the underlying ManagedChannel. But that's not what happens. None of your retry config (and barely any config at all) stands to impact the behavior of upstream grpc sender:
Also, I don't like the precedent of including sender specific details in the documentation. In general, all the senders should should conform to all the configuration of the builders. Any divergence from this should be called out clearly in the sender's docs - its not the builder's responsibility to communicate all the nuances of all the senders.
There was a problem hiding this comment.
Thanks, @jack-berg. I moved the retry guidance to the sender module README in 6d4fc6d and restored the three exporter builder Javadocs. The README now explains that the sender ignores setRetryPolicy and that the ManagedChannel controls retry behavior. Could you take another look?
Related to #8653.
Document retry behavior in the
grpc-managed-channelsender's README. The sender ignores the exporter builder'ssetRetryPolicysetting. The README explains how to configure or disable retries on a grpc-javaManagedChanneland pass it to the exporter builder withsetChannel.Validation
git diff --checkpassed. The change relative to the PR base consists of the sender README.